<!DOCTYPE html>
<html class=" -webkit-">
	<head>
    <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
	<script src="../js/zepto.min.js"></script>
	<script src="../js/frozen.js"></script>
	<script src="../js/geo.js"></script>
	<script type="text/javascript">
	 wx.ready(function () {
	        wx.hideOptionMenu();
	    });
	 </script> 
	<meta charset="utf-8">
    <title>杰利联合</title>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
	<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
    <meta content="application/xhtml+xml;charset=UTF-8" http-equiv="Content-Type">
    <meta content="no-cache,must-revalidate" http-equiv="Cache-Control">
    <meta content="no-cache" http-equiv="pragma">
    <meta content="0" http-equiv="expires">
    <meta content="telephone=no, address=no" name="format-detection">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
    <link rel="stylesheet" type="text/css" href="../css/mobile_module.css?v=1493085388" media="all">
    <script type="text/javascript">
		//静态变量
		var IMG_PATH = "/Public/Home/images";
		var STATIC_PATH = "/Public/static";
		var SITE_URL = "http://jiujiu.hbweiyinqing.cn";
		var WX_APPID = "";
		var	WXJS_TIMESTAMP=''; 
		var NONCESTR= ''; 
		var SIGNATURE= '';
	</script>
    <script type="text/javascript" src="../js/jquery-2.0.3.min.js"></script>
	<script type="text/javascript" src="http://me.hbweiyinqing.cn/Public/js/zepto.js"></script>
	<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
	<script type="text/javascript" src="../js/prefixfree.min.js?v=1493085388"></script>
	<script type="text/javascript" src="../js/dialog.js?v=1493085388"></script>
	<script type="text/javascript" src="../js/flipsnap.min.js?v=1493085388"></script>
	<script type="text/javascript" src="../js/mobile_module.js?v=1493085388"></script>
    <link href="../css/common.css?v=1493085388" rel="stylesheet" type="text/css">
	</head>
<body>
<div class="container">
  <!-- 订单信息 -->
  <div class="order_info">
    <p class="t">订单编号：20170425095322ac12cc6bd</p>
    <ul>    
        <li class="order_item"> <img src="">
          <div class="info">
            <p class="name">测试1号</p>
            <!--<p class="property">
                    	<span class="colorless">编号</span>
                    	<span>1212121212</span>
                    </p>
                    <p class="property">
                    	<span class="colorless">型号</span>
                    	<span>红色 34</span>
                    </p>-->
            <p class="property"> <span class="colorless">价格</span> <span class="orange">1积分</span> </p>
            <p class="property"> <span class="colorless">数量</span> <span>1</span> </p>
          </div>
        </li>      
    </ul>
    <!--<p class="ship_type"> <span class="fl">配送方式</span> <span class="fr">快递：10元</span> </p>-->
    <p class="order_remark">
      <textarea placeholder="撤销订单原因" name="remark" id="remark"></textarea>
    </p>
	<input type="hidden" name="id" value="8905">
<input type="hidden" name="manager_id" value="194175">
    <p class="total_price"> <span class="orange">共1积分</span> </p>
 	 	<a style="margin-bottom: 10px;" class="btn blue_btn" href="javascript:void(0)" onclick="cancel()">撤销订单</a>
 </div>		 
</div>
<script type="text/javascript">
function doPost(){
	var remark = $('#remark').val();
	var id = $('input[name="id"]').val();

	var url = "http://jiujiu.hbweiyinqing.cn/index.php?s=/addon/PoitOrder/Wap/add_order.html";
	$.post(url,{'remark':remark, 'id':id},function(res){
		if(res.result_code==0){
			$.Dialog.fail(res.msg);
		}else{
			$.Dialog.success("提交订单成功");
			$url="http://jiujiu.hbweiyinqing.cn/index.php?s=/addon/PoitOrder/Wap/user_center.html";
			window.location.href=$url;
		}
	});
}
function cancel()
{
	var remark = $('#remark').val();
	var id = $('input[name="id"]').val();
	var manager_id = $('input[name="manager_id"]').val();	 
	var url = "http://jiujiu.hbweiyinqing.cn/index.php?s=/addon/PoitOrder/Wap/notify_cancel_order.html";
	$.post(url,{'remark':remark, 'id':id,'manager_id':manager_id},function(res){
		if(res.result_code==0){
			$.Dialog.fail(res.msg);
		}else{
			$.Dialog.success("申请撤销订单已发送，等待主管审核");
			setTimeout(function(){
				WeixinJSBridge.call('closeWindow');
			}, 2000);
			//$url="http://jiujiu.hbweiyinqing.cn/index.php?s=/addon/PoitOrder/Wap/user_center.html";
			//window.location.href=$url;
		}
	});
}
</script>
</body>
</html>
